package alpaca.ctrl;

import alpaca.core.IUser;
import alpaca.core.ServerModelLocator;

public class EditUserCtrl implements IController {
	private IUser oldUser;
	private String firstName;
	private String lastName;
	private String email;
	private String password;
	private boolean active;
	
	@Override
	public void execute() {
		ServerModelLocator.getServerModel().editUser(oldUser, firstName, lastName, email, password, active);
	}

	public void setEditedUser(IUser user,String firstName, String lastName, String email, String password, boolean active) {
		oldUser =  user;
		this.firstName = firstName;
		this.lastName = lastName;
		this.email = email;
		this.password = password;
		this.active = active;
		
	}
	
}
